package com.esunny.springboot.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 用户-权限对应表
 * </p>
 *
 * @author 罗滔
 * @since 2020-10-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "UserAuthority对象", description = "用户-权限对应表")
public class UserAuthority implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户代码")
    private Long userId;

    @ApiModelProperty(value = "权限代码")
    private Long authId;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;


}
